package com.alan.libapi.api;

import java.io.IOException;

/**
 * @className: IALTcpClient
 * @describtion: IALTcpClient
 * @author: AlanWang
 * @email: 850267876@qq.com
 * @time: 2016/4/28 14:51
 */
public interface IALTcpClient {

    /**
     * isAlive
     * @return
     */
    boolean isAlive();

    /**
     * retry to connect
     * @throws IOException
     */
    void retryConnection() throws IOException;

    /**
     * close the socket
     * @throws IOException
     */
    void close() throws IOException;
}
